package cn.broadsense.biz.enums;


import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum FillTagEnum {
    DEVICE_NAME("deviceName","设备名称"),
    CHANNEL_CODE("channelCode","监控点编号"),
    MANAGEMENT_UNIT("managementUnit","管理单位"),
    DEVICE_MODEL("deviceModel","设备型号"),
    DEVICE_TYPE("deviceType","设备类型"),
    DEVICE_MANUFACTURER("deviceManufacturer","设备厂商"),
    DEVICE_ABILITY("deviceAbility","设备能力"),
    DEVICE_TAG("deviceTag","设备标签"),
    SITE_TYPE("siteType","场所类型"),
    DEVICE_LOCATION("deviceLocation","设备位置"),
    DEVICE_GPS("deviceGps","经纬度"),
    DEPT_NAME("deptName","所属组织"),
    INSTALL_LOCATION("installLocation","安装地点"),
    INSTALL_TIME("installTime","安装时间"),
    INDOOR_AND_OUTDOOR("indoorAndOutdoor","室内外"),
    MONITOR_DIRECTION("monitorDirection","监控方向"),
    MONITOR_DIRECTION_ANGLE("monitorDirectionAngle","监控方向角度"),
    MONITOR_VIEWING_AREA("monitorViewingArea","监控视角区域"),
    DEVICE_MONITOR_DISTANCE("monitorDistance","设备监控视距"),
    MONITOR_DEVICE_HIGH("deviceMonitorHigh","监控设备高度"),
    HIGH_AND_LOW_POINT("highAndLowPoint","高低点位"),
    OPTIONAL_PROJECT("optionalProject","选填项目"),
    CUSTOM_TAG("customTag","自定义标签"),
    REMARK("remark","备注信息"),
    IMAGE_URL_LIST("imageUrlList","图片地址");

    private final String fieldNameDb;
    private final String fieldName;


    public static String getFiledName(String filedNameDb) {
        for (FillTagEnum fieldEnum : FillTagEnum.values()) {
            if (fieldEnum.getFieldNameDb().equals(filedNameDb)) {
                return fieldEnum.getFieldName();
            }
        }
        return null;
    }
}
